﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XML_Indexing;
using CDE_Model;
using XPath_2;

namespace XQuery
{
    internal class XQueryParser
    {
        public static List<Element> Parse(IXMLIndex index, String query)
        {
            // Just simple XQueryEvaluator statements, for now...
            XPathEvaluator xpath = new XPathEvaluator(index, query);
            return xpath.Evaluate();
        }
    }
}
